package highlevel.clock;

import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;

public class StillClock extends JFrame implements ActionListener{
	
	private DrawClock pn = new DrawClock();
	Timer t = new Timer(1000,this);
	public static void main(String[] args) {	
		StillClock clock = new StillClock();
	}
	
	public StillClock(){
		this.getContentPane().add(pn);
		this.setBounds(400, 200, 400, 400);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setResizable(false);
		this.setVisible(true);
		t.start();
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		this.repaint();
	}

}
